package com.lightjet.macross.base.upms.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@ApiModel(description = "适用于D2-Admin Vue后台模板的菜单路由DTO")
public class D2AdminRouteDTO {

    @ApiModelProperty(value = "路由路径")
    private String path;

    @ApiModelProperty(value = "路由名")
    private String name;

    @ApiModelProperty(value = "路由组件路径")
    private String component;

    @ApiModelProperty(value = "是否隐藏")
    private boolean hidden = false;

    @ApiModelProperty(value = "路由对应菜单元信息")
    private D2AdminMenuMetaDTO meta;

    @ApiModelProperty(value = "子路由对象路由")
    private List<D2AdminRouteDTO> children;
}
